package org.springframework.my;

/**
 * @author yuanxp
 * @Date 2021/4/22 16:28
 */
public class CarFactory {
	//非静态方法
	public Car createCar(){
		Car car = new Car();
		car.setBrand("BMW");
		return car;
	}

	//静态方法
	public static Car createStaticCar(){
		Car car = new Car();
		return car;
	}
}
